package cn.codeforfun.mq.topic;

import javax.jms.JMSException;
import javax.jms.Message;
import javax.jms.MessageListener;
import javax.jms.TextMessage;

/**
 * Created by Administrator on 2016/3/27.
 */
public class FirstTopicListener2 implements MessageListener {

    public void onMessage(Message message) {
        try {
            System.out.println("FirstTopicListener2 收到消息:" + ((TextMessage) message).getText());
        } catch (JMSException e) {
            e.printStackTrace();
        }
    }

}
